import request from '@/utils/request'

export function req_fa_piao_list(data) {
  return request({
    url: '/market/invoice/invoice_all_list',
    method: 'post',
    data
  })
}
export function fa_piao_add(data) {
  return request({
    url: '/market/invoice/invoice_add',
    method: 'post',
    data
  })
}
export function fa_piao_del(data) {
  return request({
    url: '/market/invoice/invoice_cancel',
    method: 'post',
    data
  })
}
export function fa_piao_edit(data) {
  return request({
    url: '/market/invoice/invoice_edit',
    method: 'post',
    data
  })
}
export function fa_piao_luru(data) {
  return request({
    url: '/market/invoice/invoice_list',
    method: 'post',
    data
  })
}
export function dai_yi_list(data) {
  console.log(data)
  if(data.search_time&&data.search_time.length>1){
    data.search_time = data.search_time.join(',')
  }
  return request({
    url: '/market/invoice/invoice_apply_list',
    method: 'post',
    data
  })
}
export function del_dai_kai_piao(dat) {
  return request({
    url: '/market/invoice/invoice_apply_del',
    method: 'post',
    data:dat
  })
}

